From 2023914186f4c2b737e78ed3e1989e0765930457 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 20 Oct 2020 22:51:11 -0400 Subject: [PATCH] docs: Document accessible roles of some classes GtkListBox and GtkFlowBox were missing this. --- gtk/gtkflowbox.c | 5 +++++ gtk/gtklistbox.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index 79106c74c6..0ec12db7e4 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -69,6 +69,11 @@ * GtkFlowBox uses a single CSS node with name flowbox. GtkFlowBoxChild * uses a single CSS node with name flowboxchild. * For rubberband selection, a subnode with name rubberband is used. + * + * # Accessibility + * + * GtkFlowBox uses the #GTK_ACCESSIBLE_ROLE_GRID role, and GtkFlowBoxChild + * uses the #GTK_ACCESSIBLE_ROLE_GRID_CELL role. */ #include diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index b6612f34c7..f08e3bf559 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -85,6 +85,11 @@ * The main list node may also carry style classes to select * the style of [list presentation](ListContainers.html#list-styles): * .rich-list, .navigation-sidebar or .data-table. + * + * # Accessibility + * + * GtkListBox uses the #GTK_ACCESSIBLE_ROLE_LIST role and GtkListBoxRow uses + * the #GTK_ACCESSIBLE_ROLE_LIST_ITEM role. */ typedef struct _GtkListBoxClass GtkListBoxClass; -- 2.30.2